package com.xw.lianshou.controller;

import com.xw.lianshou.service.IndexService;
import com.xw.lianshou.service.Index_shouService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author xw
 * @date 2021/5/27 21:26
 */
@Controller
@RequestMapping("/xw")
public class IndexController {
    @Autowired
    private IndexService indexService;
    @Autowired
    private Index_shouService shouService;

    @RequestMapping("/index")
    @ResponseBody
    public String index(){
        return shouService.insert_shou();
    }

}
